Your tween component must process kTweenerResetSelect requests from the Component Manager. Listing 23 shows the TweenReset function, which resets the component. In this example, because TweenerInitialize does not allocate any storage, TweenerReset simply returns. In a more complex example, TweenerReset releases any storage allocated by TweenerInitialize and any storage allocated during the tween operation.
Listing 23 Function that resets a tween component
pascal ComponentResult TweenerReset (TweenerComponent tc)
{
return noErr;
}
| Previous | Chapter Contents | Chapter Top | Next |